let {merge} = require('webpack-merge');
let base = require('./webpack.base');
let path = require('path');
let webpack = require('webpack');

let mergeRes = merge(base, {
  mode: 'development',
  entry: [
    'react-hot-loader/patch',
    path.join(__dirname, '../', 'src/index.js')
  ],
  devServer: {
    port: 8080,
    hot:true,
    // 安静模式
    quiet: true,
    historyApiFallback: true
  },
  devtool: 'source-map',
  plugins: [
    new webpack.HotModuleReplacementPlugin()
  ]
});
module.exports = mergeRes;

console.log(__dirname);
